<template>
  <div>
    <el-collapse v-model="activeName" accordion>
      <el-collapse-item
        v-for="item in features"
        :key="item.id"
        :title="item.title"
        :name="item.id"
      >
        <div v-html="item.content"></div>
      </el-collapse-item>
    </el-collapse>
  </div>
</template>

<script>
export default {
  props: {
    features: {
      type: Array,
      default: [],
    },
  },
  data() {
    return {
      activeName: 0,
    };
  },
  mounted() {
    console.log(this.features);
  },
  methods: {},
};
</script>

<style scoped lang='scss'>
::v-deep .el-collapse-item__header {
  font-weight: bold;
}

.el-collapse-item {
  ::v-deep a {
    color: #2d62f7;
    margin: 0 4px;
  }
}
</style>
